﻿<%@ Page Title=" Campus Visit Form for First Year Students" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="_Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">

<script type ="text/javascript">

    function isNumeric(keyCode) {

        return ((keyCode >= 48 && keyCode <= 57 || keyCode == 8 ||

            (keyCode >= 96 && keyCode <= 105)));


    }
    function parea() {
        if (document.getElementById('<%= txtArea.ClientID %>').value.length >= 3) {
            document.getElementById('<%= txtPrefix.ClientID %>').focus();
            document.getElementById('<%= txtArea.ClientID %>').value.replace(/(^\s+)|\s+$/g, '');

            return (false);
        }
        return (true);
    }
    function pprefix() {
        if (document.getElementById('<%= txtPrefix.ClientID %>').value.length >= 3) {
            document.getElementById('<%= txtSuffix.ClientID %>').focus();
            document.getElementById('<%= txtPrefix.ClientID %>').value.replace(/(^\s+)|\s+$/g, '');

            return (false);
        }
        return (true);
    }

    function psuffix() {
        if (document.getElementById('<%= txtSuffix.ClientID %>').value.length >= 4) {
            document.getElementById('<%= txtArea0.ClientID %>').focus();
            document.getElementById('<%= txtSuffix.ClientID %>').value.replace(/(^\s+)|\s+$/g, '');

            return (false);
        }


        return (true);
    }
    function marea() {
        if (document.getElementById('<%= txtArea0.ClientID %>').value.length >= 3) {
            document.getElementById('<%= txtPrefix0.ClientID %>').focus();
            document.getElementById('<%= txtArea0.ClientID %>').value.replace(/(^\s+)|\s+$/g, '');

            return (false);
        }
        return (true);
    }
    function mprefix() {
        if (document.getElementById('<%= txtPrefix0.ClientID %>').value.length >= 3) {
            document.getElementById('<%= txtSuffix0.ClientID %>').focus();
            document.getElementById('<%= txtPrefix0.ClientID %>').value.replace(/(^\s+)|\s+$/g, '');

            return (false);
        }
        return (true);
    }

    function msuffix() {
        if (document.getElementById('<%= txtSuffix0.ClientID %>').value.length >= 4) {
            document.getElementById('<%= txtSchool.ClientID %>').focus();
            document.getElementById('<%= txtSuffix0.ClientID %>').value.replace(/(^\s+)|\s+$/g, '');

            return (false);
        }


        return (true);
    }

</script>
    <!-- https connection working for calendar when add all these script like below not http for href="" type exactly like below -->
    <link rel="stylesheet" type="text/css" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.7.0/themes/base/jquery-ui.css" />
    <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> 
    <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>



    <script type="text/javascript">

        var date = new Date();
        var date2 = new Date();
        date2.setDate(date2.getDate() + 1);
        var m = date.getMonth();
        var d = date.getDate(), y = date.getFullYear();
        var disabledDays = ["4-3-2015", "5-25-2015", "5-29-2015", "6-19-2015"];
        $(document).ready(function () {
   
            var txtHoliday = $('input[type=text][id*=txtVisitDate]');  //Finds all input fields with an ID that starts with txtdt





            function disableAllTheseDays(date) {
                var m = date.getMonth(), d = date.getDate(), y = date.getFullYear();
                 var day = date.getDay(); //get day
                for (i = 0; i < disabledDays.length; i++) {
                    if ($.inArray((m + 1) + '-' + d + '-' + y, disabledDays) != -1 || new Date() > date || new Date().getDay() + 1 > date   )
                    { return [false]; }


                }
//                //disable other than Monday ,Wednesday and Friday var day = date.getDay(); get day and here  0=sunday 1=monday 2= tuesday 3= wednesday 4= thursday 5= friday 
//                if ( day != 1 && day != 3 && day != 5 )
//                { return [false]; }

                return [true];

            }



            // Diable both weekends and list of dates

            /******************************************************************/
            /*  Disable a Weekends & list of dates (given Holidays)           */
            /******************************************************************/

            function noWeekendsOrHolidays(date) {
                var noWeekend = $.datepicker.noWeekends(date);
                if (noWeekend[0]) {
                    return disableAllTheseDays(date);
                } else {
                    return noWeekend;
                }
            }


//            function noWeekEndsandHolidays(date) {
//                var noWeekend = $.datepicker.noWeekends(date);
//                return noWeekend[0] ? disableAllTheseDays(date) : noWeekend;

//            }

            /******************************************************************/
            /*               Disable a only weekends                        */
            /******************************************************************/


//            function noWeekends(date) {
//                var noWeekend = $.datepicker.noWeekends(date); return noWeekend;
            //            }



            var dateMin = new Date();
            var weekDays = AddWeekDays(1);

            dateMin.setDate(dateMin.getDate() + weekDays);


            //this is checking after 12 pm visit date available next day

            function AddWeekDays(weekDaysToAdd) {
                var mydate = new Date()
                if (mydate.getHours() >= 12) var daysToAdd = 1
                else var daysToAdd = 0
                var day = mydate.getDay()
                weekDaysToAdd = weekDaysToAdd - (5 - day)
                if ((5 - day) < weekDaysToAdd || weekDaysToAdd == 1) {
                    daysToAdd = (5 - day) + 2 + daysToAdd
                } else { // (5-day) >= weekDaysToAdd
                    daysToAdd = (5 - day) + daysToAdd
                }
                while (weekDaysToAdd != 0) {
                    var week = weekDaysToAdd - 5
                    if (week > 0) {
                        daysToAdd = 7 + daysToAdd
                        weekDaysToAdd = weekDaysToAdd - 5
                    } else { // week < 0
                        daysToAdd = (5 + week) + daysToAdd
                        weekDaysToAdd = weekDaysToAdd - (5 + week)
                    }
                }

                return daysToAdd;
            }


            $(txtHoliday).datepicker({

                inline: true,
                hideInput: false,
                //Added for month & year
                changeMonth: true,
                changeYear: true,
                //startDate: '+2dd',
                //minDate: new Date(2012, 3, 21), // 0-Jan, 1-Feb,2-Mar, 3-Apr,4-May
                dateFormat: 'mm-dd-yy',
                numberOfMonths: 1, // Show 2 months
                beforeShowDay: noWeekendsOrHolidays, // Call function noWeekendsOrHolidays(date)
                minDate: dateMin,
                defaultDate: +1,
                beforeShow: function (input, inst) {
                    $.datepicker._pos = $.datepicker._findPos(input); //this is the default position        
                    //                    $.datepicker._pos[0] = 430; //left         
                    //                    $.datepicker._pos[1] = 115; //top     
                },
                onSelect: function () { } // this used to remove after select

            });

        });
</script>
<style type="text/css">
.ui-datepicker {
   background: #323;
   border: 1px solid #555;
   color: #EFE;
   z-index:200;
   font-size:x-small;

 }
</style>

</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent" >
    <div class="main">
    <h2>
        Campus Visit Form for First Year Students
    </h2>
     <p  style="padding:5px 5px 5px 5px; font-size: small; " >
        <strong>Interested in Avila?</strong> Then a visit to our campus will help you in your decision to enroll.
            
            Please fill out the information below and click submit to complete your
        request for a campus visit. We look forward to meeting you.</p>



    <table style=" width:794px; margin-left:10px; height: 556px;"   > 
          <tr align="left">
       <td style ="color :Red;" > <span style ="color :Red; font-weight:bold;"> </span>(*) Required Fields
       </td>
       </tr> 
        <tr >
            <td align="left" valign="top"  >  
                <asp:Label ID="lblFname" runat="server" Font-Bold="true" Text="First Name*"></asp:Label> 
               
            </td> 
            <td align="left" valign="top" >
                <asp:TextBox ID="txtFName" runat="server" TabIndex="1"  Font-Size="12px" ></asp:TextBox> 
               
                <asp:RequiredFieldValidator ForeColor="Red" ID="rfvFName" runat="server"  Display="Dynamic"   ControlToValidate="txtFName"
                   InitialValue=""   ErrorMessage="*"></asp:RequiredFieldValidator>
               
            </td>
            <td align="left" valign="top" >  
                  <asp:Label ID="lblLname" runat="server" Font-Bold="true" Text="Last Name*"></asp:Label> 
            </td>
            <td align="left" valign="top"  >
                <asp:TextBox ID="txtLName" runat="server" TabIndex="2"  Font-Size="12px" ></asp:TextBox>   
                <asp:RequiredFieldValidator ForeColor="Red" ID="rfvLName" runat="server"  Display="Static"   
                 ControlToValidate="txtLName" 
               InitialValue="" ErrorMessage="*"></asp:RequiredFieldValidator> 
            </td>
           
         </tr>
         
        <tr >
            <td align="left" valign="top"  >  
               <asp:Label ID="Label2" runat="server" Text="Preferred Name "></asp:Label> </td> 
            <td align="left" valign="top" >
               <asp:TextBox ID="txtPre" runat="server" TabIndex="3"  Font-Size="12px"></asp:TextBox>
             </td>
             <td align="left" valign="top" >   
                <asp:Label ID="lblMName" runat="server" Text="Middle Name "></asp:Label> 
             </td>
             <td align="left" valign="top" > 
                <asp:TextBox ID="txtMName" runat="server" TabIndex="4"  Font-Size="12px"></asp:TextBox> </td>
        </tr>
        
         <tr>
            <td align="left" valign="top"  >
                <asp:Label ID="lblStreet1" runat="server" Font-Bold="true" Text="Address*" ></asp:Label>  
            </td> 
            <td align="left" valign="top" >
                 <asp:TextBox ID="txtStreet1" runat="server" TabIndex="5"  Font-Size="12px"></asp:TextBox>  
                <asp:RequiredFieldValidator ForeColor="Red" ID="rfvStreet1" runat="server"  Display="Static"  
                 ControlToValidate="txtStreet1" 
               InitialValue="" ErrorMessage="*">
               </asp:RequiredFieldValidator>   
            </td>
            <td align="left" valign="top" >  
                <asp:Label ID="lblStreet2" runat="server" Text="Street"></asp:Label>  
            </td>
            <td align="left" valign="top"  >
                <asp:TextBox ID="txtStreet2" runat="server" TabIndex="6"  Font-Size="12px"></asp:TextBox>    
             </td>
             
           </tr>
         <tr >
            <td align="left" valign="top" >
                <asp:Label ID="lblCity" runat="server" Font-Bold="true" Text="City*"></asp:Label>  
             </td> 
             <td align="left" valign="top" >
               
                <asp:TextBox ID="txtCity" runat="server" TabIndex="7"  Font-Size="12px"></asp:TextBox> 
                <asp:RequiredFieldValidator ForeColor="Red" ID="rfvCity" runat="server"  
                 Display="Static"   ControlToValidate="txtCity" 
                 InitialValue="" ErrorMessage="*"></asp:RequiredFieldValidator>   
             </td>
              <td align="left" valign="top" >  
                <asp:Label ID="lblState" runat="server" Font-Bold="true" Text="State/Province*"></asp:Label>  
              </td>
              <td align="left" valign="top"  >
                <asp:DropDownList ID="ddState2" runat="server"  Font-Size="12px"  Width="130px"
                      onselectedindexchanged=  "ddState2_SelectedIndexChanged" TabIndex="8" > 
                <asp:ListItem Value=""  Selected="True" >Choose a State</asp:ListItem>
                <asp:ListItem Value="AL">Alabama</asp:ListItem>
                <asp:ListItem Value="AK">Alaska </asp:ListItem>
                <asp:ListItem Value="AZ">Arizona</asp:ListItem>
                <asp:ListItem Value="AR">Arkansas</asp:ListItem>
                <asp:ListItem Value="CA">California</asp:ListItem>
                <asp:ListItem Value="CO">Colorado</asp:ListItem>
                <asp:ListItem Value="CT">Connecticut</asp:ListItem>
                <asp:ListItem Value="DC">D.C.</asp:ListItem>
                <asp:ListItem Value="DE">Delaware</asp:ListItem>
                <asp:ListItem Value="FL">Florida</asp:ListItem>
                <asp:ListItem Value="GA">Georgia</asp:ListItem>
                <asp:ListItem Value="HI">Hawaii</asp:ListItem>
                <asp:ListItem Value="ID">Idaho</asp:ListItem>
                <asp:ListItem Value="IL">Illinois</asp:ListItem>
                <asp:ListItem Value="IN">Indiana</asp:ListItem>
                <asp:ListItem Value="IA">Iowa</asp:ListItem>
                <asp:ListItem Value="KS">Kansas</asp:ListItem>
                <asp:ListItem Value="KY">Kentucky</asp:ListItem>
                <asp:ListItem Value="LA">Louisiana</asp:ListItem>
                <asp:ListItem Value="ME">Maine</asp:ListItem>
                <asp:ListItem Value="MD">Maryland</asp:ListItem>
                <asp:ListItem Value="MA">Massachusetts</asp:ListItem>
                <asp:ListItem Value="MI">Michigan</asp:ListItem>
                <asp:ListItem Value="MN">Minnesota</asp:ListItem>
                <asp:ListItem Value="MS">Mississippi</asp:ListItem>
                <asp:ListItem Value="MO">Missouri</asp:ListItem>
                <asp:ListItem Value="MT">Montana</asp:ListItem>
                <asp:ListItem Value="NE">Nebraska</asp:ListItem>
                <asp:ListItem Value="NV">Nevada</asp:ListItem>
                <asp:ListItem Value="NH">New Hampshire</asp:ListItem>
                <asp:ListItem Value="NJ">New Jersey</asp:ListItem>
                <asp:ListItem Value="NM">New Mexico</asp:ListItem>
                <asp:ListItem Value="NY">New York</asp:ListItem>
                <asp:ListItem Value="NC">North Carolina</asp:ListItem>
                <asp:ListItem Value="ND">North Dakota</asp:ListItem>
                <asp:ListItem Value="OH">Ohio</asp:ListItem>
                <asp:ListItem Value="OK">Oklahoma</asp:ListItem>
                <asp:ListItem Value="OR">Oregon</asp:ListItem>
                <asp:ListItem Value="PA">Pennsylvania</asp:ListItem>
                <asp:ListItem Value="RI">Rhode Island</asp:ListItem>
                <asp:ListItem Value="SC">South Carolina</asp:ListItem>
                <asp:ListItem Value="SD">South Dakota</asp:ListItem>
                <asp:ListItem Value="TN">Tennessee</asp:ListItem>
                <asp:ListItem Value="TX">Texas</asp:ListItem>
                <asp:ListItem Value="UT">Utah</asp:ListItem>
                <asp:ListItem Value="VT">Vermont</asp:ListItem>
                <asp:ListItem Value="VA">Virginia</asp:ListItem>
                <asp:ListItem Value="WA">Washington</asp:ListItem>
                <asp:ListItem Value="WV">West Virginia</asp:ListItem>
                <asp:ListItem Value="WI">Wisconsin</asp:ListItem>
                <asp:ListItem Value="WY">Wyoming</asp:ListItem>
   
            </asp:DropDownList>  
                <asp:RequiredFieldValidator ForeColor="Red" ID="rfvState" runat="server"  Display="Static"  
                 ControlToValidate="ddState2" InitialValue="" ErrorMessage="*"></asp:RequiredFieldValidator>    
             </td>
           
         </tr>
         <tr >
            <td align="left" valign="top"  >  
                <asp:Label ID="lblZip" Font-Bold="true" runat="server" Text="Zip Code*"></asp:Label>  
               
            </td> 
            <td align="left" valign="top" >
                <asp:TextBox ID="txtZip" runat="server" TabIndex="9" MaxLength= "5"  Font-Size="12px"></asp:TextBox>
               
                <asp:RequiredFieldValidator ForeColor="Red" ID="rfvZip" runat="server"  Display="Dynamic"  ControlToValidate="txtZip"
               InitialValue=""  ErrorMessage="*"></asp:RequiredFieldValidator>
               
                 <asp:RegularExpressionValidator ForeColor="Red" Display="Dynamic" ID="revZip" runat="server" Font-Size="X-Small" 
                     ErrorMessage="<br />Provid a valid 5 Digit Zip Code" ControlToValidate="txtZip" CssClass="errMsg"   ValidationExpression="^([0-9]{5,5})$" 
                  ></asp:RegularExpressionValidator>  </td>
             <td align="left" valign="top" >  
                <asp:Label ID="lblEmail" Font-Bold="true" runat="server" Text="Email Address*"></asp:Label> 
               
              </td>
             <td align="left" valign="top" style="width:294;" >
                 <%-- ValidationExpression="\d{5}(-\d{4})?"--%> 
                 <asp:TextBox ID="txtEmail" runat="server" TabIndex="10"  Font-Size="12px"></asp:TextBox>
                <asp:RequiredFieldValidator ForeColor="Red" ID="rfvEmail" runat="server"  Display="Dynamic"   ControlToValidate="txtEmail"
                    InitialValue="" ErrorMessage="*"  ></asp:RequiredFieldValidator>
                
                <asp:RegularExpressionValidator ForeColor="Red" ID="revEmail" runat="server"  ControlToValidate="txtEmail"
                    Display="Dynamic" ErrorMessage="<br />Provide a valid email" CssClass="errMsg" Font-Size="X-Small" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator> 
              </td>
          
        </tr>
         <tr >
            <td align="left" valign="top" >  
                 <asp:Label ID="lblHPhone" runat="server" Font-Bold="true" Text="Home Phone*"></asp:Label> 
            </td> 
            <td align="left" valign="top" >
                 <asp:TextBox  ID="txtArea" runat="server" MaxLength="3" Width="35px"  Font-Size="12px"
                            TabIndex="11"></asp:TextBox>
                <asp:RequiredFieldValidator ForeColor="Red" ID="RFVtxtArea" ControlToValidate="txtArea" Display="Dynamic" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>  
                        <asp:TextBox ID="txtPrefix" runat="server" MaxLength="3" Width="35px"  Font-Size="12px"
                            TabIndex="12"></asp:TextBox> 
                             <asp:RequiredFieldValidator ForeColor="Red" ID="RFVtxtPrefix" Display="Dynamic" ControlToValidate="txtPrefix" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>  
                        <asp:TextBox ID="txtSuffix" runat="server" MaxLength="4" Width="40px"  Font-Size="12px"
                            TabIndex="13"></asp:TextBox> 
           <asp:RequiredFieldValidator ForeColor="Red" ID="RFvtxtSuffix" Display="Dynamic" ControlToValidate="txtSuffix" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>  

                          <asp:RegularExpressionValidator ForeColor="Red"
                            ID="RExpPhone" runat="server" 
                            Display ="Dynamic" 
                            ErrorMessage="<br />Provide a valid area code" 
                             ControlToValidate="txtArea"
                            ValidationExpression="^([0-9]{3,3})$" 
                            Font-Size="X-Small"></asp:RegularExpressionValidator>
                            <asp:RegularExpressionValidator ForeColor="Red"
                            ID="RegularExpressionValidator2" runat="server" 
                            Display ="Dynamic" 
                            ErrorMessage="<br />Provide a valid middle 3 digits!" 
                             ControlToValidate="txtPrefix"
                            ValidationExpression="^([0-9]{3,3})$" 
                            Font-Size="X-Small"></asp:RegularExpressionValidator>
                            <asp:RegularExpressionValidator ForeColor="Red"
                            ID="RegularExpressionValidator3" runat="server" 
                            Display ="Dynamic" 
                            ErrorMessage="<br />Provide a valid last 4 digits!" 
                            ControlToValidate="txtSuffix"
                            ValidationExpression="^([0-9]{4,4})$" 
                            Font-Size="X-Small"></asp:RegularExpressionValidator>
                 
                 </td>
             <td align="left" valign="top">  
                <asp:Label ID="lblMphone" runat="server" Text="Mobile Phone "></asp:Label> 
             </td>
              <td align="left" valign="top"  >

              <asp:TextBox  ID="txtArea0" runat="server" MaxLength="3" Width="35px"  Font-Size="12px"
                            TabIndex="14"></asp:TextBox>
             <asp:TextBox ID="txtPrefix0" runat="server" MaxLength="3" Width="35px"  Font-Size="12px"
                            TabIndex="15"></asp:TextBox> 
                             <asp:TextBox ID="txtSuffix0" runat="server" MaxLength="4" Width="40px"  Font-Size="12px"
                            TabIndex="16"></asp:TextBox>
                            <asp:RegularExpressionValidator
                            ID="RExpPhone0" runat="server" 
                            Display ="Dynamic" 
                            ErrorMessage="<br />Provide a valid area code" 
                             ControlToValidate="txtArea0"
                            ValidationExpression="^([0-9]{3,3})$" 
                            Font-Size="X-Small"></asp:RegularExpressionValidator>
                            <asp:RegularExpressionValidator
                            ID="RegularExpressionValidator4" runat="server" 
                            Display ="Dynamic" 
                            ErrorMessage="<br />Provide a valid middle 3 digits!" 
                             ControlToValidate="txtPrefix0"
                            ValidationExpression="^([0-9]{3,3})$" 
                            Font-Size="X-Small"></asp:RegularExpressionValidator>
                            <asp:RegularExpressionValidator
                            ID="RegularExpressionValidator5" runat="server" 
                            Display ="Dynamic" 
                            ErrorMessage="<br />Provide a valid last 4 digits!" 
                            ControlToValidate="txtSuffix0"
                            ValidationExpression="^([0-9]{4,4})$" 
                            Font-Size="X-Small"></asp:RegularExpressionValidator>

               <%-- <asp:TextBox ID="txtMphone" runat="server" TabIndex="14"  Font-Size="12px"></asp:TextBox> 
                <asp:RegularExpressionValidator ForeColor="Red" ID="revMPhone" runat="server" CssClass="errMsg"
                     ErrorMessage="<br />Format 999-999-9999"  Display="Dynamic" ControlToValidate="txtMphone"
                  Font-Size="X-Small"    ValidationExpression="((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}"></asp:RegularExpressionValidator>
                --%>
                </td>
             
        
        </tr>
         <tr>
         <td colspan="4" > <br /></td>
       
         </tr>
        
        <tr>
         <td colspan="2" align="left" valign="top" >
            <asp:Label ID="lblSchool" runat="server" Font-Bold="true" Text="School Currently or Last Attended*"></asp:Label>  
            <br />
             <asp:TextBox ID="txtSchool" runat="server"  maxlength="40" TabIndex="17"  Font-Size="12px"></asp:TextBox> 
             <asp:RequiredFieldValidator ForeColor="Red" ID="rfvSchool" runat="server"  
                Display="Static"   ControlToValidate="txtSchool" 
               InitialValue="" ErrorMessage="*"></asp:RequiredFieldValidator>
         </td>
          <td colspan="2" align="left" valign="top" >
          <asp:Label ID="lblGradDate" runat="server" Font-Bold="true" Text="High school Graduation Year*"></asp:Label>  
             <br />
             <asp:TextBox ID="txtGradDate" runat="server"  maxlength="4" TabIndex="18"  Font-Size="12px"  ></asp:TextBox>
              <asp:RequiredFieldValidator ForeColor="Red" ID="rfvGradDate"  runat="server"  Display="Static"   ControlToValidate="txtGradDate"
               InitialValue="" ErrorMessage="*"></asp:RequiredFieldValidator>
                  <asp:RegularExpressionValidator ForeColor="Red" Display="Dynamic" ID="RegularExpressionValidator1" runat="server" 
                     ErrorMessage="Format YYYY" Font-Size="X-Small" ControlToValidate="txtGradDate" CssClass="errMsg"   ValidationExpression="^([0-9]{4,4})$" 
                  ></asp:RegularExpressionValidator>
         </td>
         </tr>
       
       <tr>
        <td align="left" valign="top" colspan="2" ><asp:Label ID="Label1" runat="server" Text="ACT Score"></asp:Label> </td>
        
        <td colspan="2" align="left"  valign="top">SAT Composite<span >(Critical Reading + Math)</span><br /></td>
        </tr>
        <tr>
        <td align="left" valign="top" colspan="2" >
            <asp:TextBox ID="txtACTScore" runat="server" MaxLength="10" TabIndex="19"  Font-Size="12px"></asp:TextBox>
            </td>
       
         <td colspan="2" align="left" valign="top">
              <asp:TextBox ID="txtSATcomp" runat="server" maxlength="10" TabIndex="20"  Font-Size="12px" />
             </td>
       
      </tr>
       
   
       <tr>
         <td colspan="2" rowspan="2" align="left" valign="top" ><b>Intended Major*</b> <br />
             <asp:DropDownList ID="ddMajor" runat="server"  Font-Size="12px"
                 onselectedindexchanged="ddMajor_SelectedIndexChanged" TabIndex="21">
             </asp:DropDownList>
             
             <asp:RequiredFieldValidator ForeColor="Red" 
                 ID="rfvMajor" runat="server"  Display="Static"   ControlToValidate="ddMajor" 
               InitialValue="" ErrorMessage="*"></asp:RequiredFieldValidator>
              
            
         </td>
         <td colspan="2" align="left" valign="top" ><span >Athletic Interests</span>
          <%-- <span  style="font-size:x-small;">(hold the 'Ctrl' key down and click to select more than one)</span>--%><br /></td>
      </tr>
      <tr>
        <td colspan="2" align="left" valign="top" >
            <asp:DropDownList ID="ddAthInt"   runat="server"  Font-Size="12px"
                onselectedindexchanged="ddAthInt_SelectedIndexChanged" TabIndex="22">
                <asp:ListItem></asp:ListItem>
                <asp:ListItem>Basketball</asp:ListItem>
                <asp:ListItem>Baseball</asp:ListItem>
                <asp:ListItem>Cheer</asp:ListItem>
                <asp:ListItem>Cross Country</asp:ListItem>
                <asp:ListItem>Dance</asp:ListItem>
                <asp:ListItem>Football</asp:ListItem>
                <asp:ListItem>Golf</asp:ListItem>
                <asp:ListItem>Soccer</asp:ListItem>
                <asp:ListItem>Softball</asp:ListItem>
                <asp:ListItem>Track and Field</asp:ListItem>
                <asp:ListItem>Volleyball</asp:ListItem>
            
            </asp:DropDownList>
         </td>
      </tr>
     
      
        


    <%-- <tr>
        <td colspan="2" align="left" valign="top" ><b>Would you like to visit on a Saturday?</b>
            <asp:RequiredFieldValidator ID="rfvrbSat"  ControlToValidate="rbSat" runat="server" ErrorMessage="Choose One"></asp:RequiredFieldValidator>
       
        </td>
        <td colspan="2" align="left" valign="top" >
        
            <asp:RadioButtonList ID="rbSat" runat="server" RepeatDirection="Horizontal"  TabIndex="21"
                AutoPostBack="true" onselectedindexchanged="rbSat_SelectedIndexChanged">
            <asp:ListItem Text="Yes" Value="Y"></asp:ListItem>
                  <asp:ListItem Text="No" Value="N"></asp:ListItem>
            
            
            </asp:RadioButtonList>
        
        
           
           
             </td> </tr>--%>
     <tr>
     <td colspan="5">
      <asp:Panel ID="pnlReg" runat="server" Width="797px"  >  
       <table style=" width: 793px;">
       <tr>
        <td align="left" valign="top" colspan="2" >  <asp:Label ID="lblMsg" runat="server"  ></asp:Label></td> </tr>
       <tr>
        <td align="left" valign="top" style="width: 462px" ><b>When would you like to visit?*</b> </td>
        <td align="left" valign="top"><b>Choose a visit start time*:</b></td>
        </tr>
        <tr>
        <td align="left" valign="top" style="width: 462px" >
             
            
            <asp:TextBox ID="txtVisitDate" runat="server" TabIndex="23"   
                Font-Size="12px" 
                 ></asp:TextBox>
            <asp:RequiredFieldValidator ForeColor="Red" 
                ID="rfvVisitDate" runat="server"  Display="Static"   ControlToValidate="txtVisitDate" 
               InitialValue="" ErrorMessage="*"></asp:RequiredFieldValidator> 
           <asp:Label ID="lblErrTime" runat="server" ></asp:Label>
           
             
           
           
               
            
               
          
         
         </td>   
          <td align="left" valign="top" >
             
             
              <asp:DropDownList ID="ddVisitTime" runat="server" AutoPostBack="True"  
                  TabIndex="24"   Font-Size="12px" 
                 onselectedindexchanged="ddVisitTime_SelectedIndexChanged">
             

              </asp:DropDownList>  

              <asp:RequiredFieldValidator 
                ID="rfvVisitTime" runat="server"  Display="Static"   ControlToValidate="ddVisitTime" 
               InitialValue="" ErrorMessage="*" ForeColor="Red"   ></asp:RequiredFieldValidator>
                  
 
 
 
 
          </td>
        </tr></table>
      </asp:Panel>  
   
    <%-- <asp:Panel ID="pnlSat" runat="server" style=" width: 850px;"  >  
       <table style=" width: 850px;">
       <tr>
        <td align="left" valign="top" ><b>When would you like to visit?*</b> </td>
        <td align="left" valign="top" ><b>Choose a visit start time*:</b></td>
        </tr>
        <tr>
        <td align="left" valign="top"  >
            
            <asp:TextBox ID="txtSatVisitDate" runat="server" TabIndex="22" ForeColor="Blue" Font-Size="12px"></asp:TextBox>
            <asp:RequiredFieldValidator 
                ID="RequiredFieldValidator1" runat="server"  Display="Static"   ControlToValidate="txtSatVisitDate" 
               InitialValue="" ErrorMessage="*"></asp:RequiredFieldValidator>
             <asp:Panel ID="pnlSatCal" CssClass="popupControl" runat="server">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                     <center>
                 <asp:Calendar ID="SatCalendar"  OnDayRender="SatCalenderDayRenderMethod"  
                runat="server" Width="160px" DayNameFormat="Shortest" 
                            BackColor="White" BorderColor="#999999" CellPadding="1" Font-Names="Verdana"
                             Font-Size="8pt" ForeColor="#49136b" 
                             onselectionchanged="SatCalendar_SelectionChanged" >
                                <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
                                <TodayDayStyle BackColor="#CCCCCC" ForeColor="Blue" />
                                <SelectorStyle BackColor="#CCCCCC" />
                                <WeekendDayStyle    /> 
                                <OtherMonthDayStyle  ForeColor="Blue"  /> 
                                <NextPrevStyle VerticalAlign="Bottom" />
                                <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt"  />
                                <DayStyle  ForeColor="Blue"   />
                                

                                <TitleStyle BackColor="#999999" Font-Size="7pt" BorderColor="Black" Font-Bold="True"  />
                       
                 </asp:Calendar>
             </center>
                    
                    </ContentTemplate>
                </asp:UpdatePanel>  
            </asp:Panel>
            <asp:PopupControlExtender ID="PopupControlExtender2"
             TargetControlID ="txtSatVisitDate"
              PopupControlID ="pnlSatCal"
               Position="right"
                
             runat="server" >
            </asp:PopupControlExtender>
            
            
            
            
            
               
          
         
         </td>   
          <td align="left" valign="top" >
             
             
              <asp:DropDownList ID="ddSatVisitTime" runat="server" TabIndex="23"  Font-Size="12px">
                  <asp:ListItem></asp:ListItem>
                  <asp:ListItem>9 AM</asp:ListItem>
                  <asp:ListItem>10 AM</asp:ListItem>
                 

              </asp:DropDownList>

              <asp:RequiredFieldValidator 
                ID="RequiredFieldValidator2" runat="server"  Display="Static"   ControlToValidate="ddSatVisitTime" 
               InitialValue="" ErrorMessage="*"></asp:RequiredFieldValidator>
            
          </td>
        </tr>
        
        </table>
    </asp:Panel>--%>
     </td>
     
     </tr>  
    
        <tr>
        <td colspan="4" align="left" valign="top" >List others you would  like to meet with such as an academic, athletic, or other person?</td>
       
        </tr>
      
        <tr>
        <td colspan="4" align="left" valign="top"  > 
            <asp:TextBox ID="txtarOther"  Font-Size="12px" 
                runat="server" Height="63px" TextMode="MultiLine" 
                Width="624px" TabIndex="25"  ></asp:TextBox></td>
        
        </tr>
      
      
      
      </table>
    <table style="width: 751px; margin-left:10px;">
       <tr>
        <td align="left" valign="top" colspan="4"  >How did you hear about Avila?</td>
        
      </tr>
        <tr>
        <td align="left" valign="top" colspan="4" > <asp:DropDownList ID="ddHowHear" runat="server"  Font-Size="12px" 
                onselectedindexchanged="ddHowHear_SelectedIndexChanged" TabIndex="26">
                <asp:ListItem></asp:ListItem>
                <asp:ListItem>College Fair</asp:ListItem>
                <asp:ListItem>Alumni</asp:ListItem>
                <asp:ListItem>Brochure</asp:ListItem>
                <asp:ListItem>Current Student</asp:ListItem>
                <asp:ListItem>Friend</asp:ListItem>
                <asp:ListItem>Internet Search</asp:ListItem>
                <asp:ListItem>Parent</asp:ListItem>
                <asp:ListItem>Radio Ad</asp:ListItem>
                <asp:ListItem>TV</asp:ListItem>
                <asp:ListItem>Other</asp:ListItem>
            </asp:DropDownList></td>
       
      </tr>
        <tr>
      
        <td colspan="4" align="left" valign="top" ><br /></td>
     
      </tr>
       <tr>
        <td colspan="4" align="left" valign="top" >Who is filling out this form?  </td>
      
      </tr>
      
      
      
       <tr>
        <td align="left" valign="top" colspan="4" >
                <asp:RadioButtonList ID="rbWho" runat="server" RepeatDirection="Horizontal" 
                    Height="17px" TabIndex="27" Width="488px">
                    <asp:ListItem>Student</asp:ListItem>
                    <asp:ListItem>Parent</asp:ListItem>
                    <asp:ListItem>AvilaRep</asp:ListItem>
                    <asp:ListItem>Coach</asp:ListItem>
                    <asp:ListItem >HS Counselor</asp:ListItem>
                </asp:RadioButtonList>
       </td>
       
      </tr>
     
     
     
    
      </table>
    <table style="width: 766px">
         
      
       <tr>
        <td  align="left" valign="top" colspan="4"  >
       
        <br />
        </td>
       
        
      </tr> 
      <tr>
        <td colspan="4" align="left" valign="top"  ><span >We will review your information
            and contact you soon! </span> <br /></td>
        
      </tr>
    
       <tr align ="center">
       
        <td colspan="4"  valign="top" >
            <asp:Button ID="btnSubmit" runat="server" 
                Text="Submit" style="font-size:larger; font-weight:bold;" 
                onclick="btnSubmit_Click" TabIndex="28" Height="47px" Width="101px" /></td>
       
      </tr>

        
         
     
          </table>  
   </div>
</asp:Content>
